import { App } from '@vue/runtime-dom'

/** brop: boolean property的缩写。用于将数据转换为HTML标签属性的开关 */
export const brop = (value: any) => value ? '' : null

export const install = function (app: App) {
  app.mixin({ data () { return { brop } } })

  app.provide('$brop', brop)
}
